home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Mac Game Programming Gurus / TricksOfTheMacGameProgrammingGurus.iso / CodeWarrior Lite / Metrowerks C⁄C++ Lite / Headers / System Extras Headers / AOCE Headers / OCEErrors.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-04-20  |  17.3 KB  |  333 lines  |  [TEXT/MMCC]

  1. /*
  2.     File:        OCEErrors.h
  3.  
  4.     Copyright:    © 1984-1993 by Apple Computer, Inc., all rights reserved.
  5.  
  6.     WARNING
  7.     This file was auto generated by the interfacer tool. Modifications
  8.     must be made to the master file.
  9.  
  10. */
  11.  
  12. #ifndef    __OCEERRORS__
  13. #define __OCEERRORS__
  14.  
  15. #ifndef __ERRORS__
  16. #include <Errors.h>
  17. /*    #include <ConditionalMacros.h>                                */
  18. #endif
  19.  
  20. /*
  21. Allocated ranges:
  22.     AOCE General Errors                        -1500 to -1539
  23.     AOCE Authentication Errors                -1540 to -1609
  24.     AOCE Catalog Errors                        -1610 to -1680
  25.     
  26.     AOCE Standard Mail Errors                -1900 to -1949
  27.     AOCE Standard Catalog Errors            -1950 to -1969
  28.     AOCE Digital Signature Errors            -1970 to -1999
  29.  
  30.     AOCE Templates Errors                    -15000 to -15039
  31.     AOCE Mail Errors                        -15040 to -15089
  32.     AOCE Messaging Errors                    -15090 to -15169
  33.     Reserved for future                        -15170 to -15199
  34. */
  35.  
  36.  
  37. /* AOCE General Errors (-1500 to -1539) */
  38.  
  39. enum {
  40.     kOCEToolboxNotOpen                        = -1500,    /* Toolbox not open; perhaps its closing */
  41.     kOCEInvalidCommand                        = -1501,    /* Request code passed to a trap call is invalid */
  42.     kOCEInvalidRef                            = -1502,    /* a reference to an object is obsolete or invalid */
  43.     kOCEBufferTooSmall                        = -1503,    /* the buffer supplied is too small for the task */
  44.     kOCEVersionErr                            = -1504,    /* some manner of software version mismatch */
  45.     kOCESyncAsyncErr                        = -1505,    /* Op tried synchronously may only be done async, or vice versa */
  46.     kOCEInternalErr                            = -1506,    /* the OCE toolbox has an internal error */
  47.     kOCENotAnOwner                            = -1507,    /* this operation can only be done by the object's owner */
  48.     kOCENotImplemented                        = -1508,    /* Feature not implemented */
  49.     kOCENotAuthenticated                    = -1509,    /* The user must be authenticated */
  50.     kOCEAlreadyExists                        = -1510,    /* The object being added already exists */
  51.     kOCEDoesntExist                            = -1511,    /* the object being referenced doesn't exist or cannot be found */
  52.     kOCEConnectionErr                        = -1512,    /* Unable to open or maintain a network transport */
  53.     kOCEConnectionClosed                    = -1513,    /* Connect has closed */
  54.     kOCEInvalidRecipient                    = -1514,    /* Invalid recipient/address for this command */
  55.     kOCEInvalidIndex                        = -1515,    /* invalid index (out of range) */
  56.     kOCERefIsClosing                        = -1516,    /* Object references is being closed, cannot complete command */
  57.     kOCEHasPendingMsgs                        = -1517,    
  58.     kOCEInvalidConfiguration                = -1518,
  59.     kOCERequiredServicesNotAvailable        = -1519,
  60.     kOCEServerInactive                        = -1520,
  61.     kOCEMoreDiskSpaceNeeded                    = -1521,    /* Inadequate disk space to safely complete operation */
  62.     kOCEParamErr                            = paramErr    /* invalid parameter passed to toolbox */
  63. };
  64.  
  65. /* AOCE Authentication Errors (-1540 to -1609) */
  66.  
  67. enum {
  68.     kOCEReadAccessDenied                    = -1540,    
  69.     kOCEWriteAccessDenied                    = -1541,    
  70.     kOCEAccessRightsInsufficient            = -1542,    /* stream needs to be authenticated, or not authorized, or someone other than agent trying to TPFC, or problem in server-to-server authentication */
  71.     kOCEUnsupportedCredentialsVersion        = -1543,    /* don't know how to read that version of credentials */
  72.     kOCECredentialsProblem                    = -1544,    /* couldn't successfully decrypt credentials */
  73.     kOCECredentialsImmature                    = -1545,    /* current time < first valid time */
  74.     kOCECredentialsExpired                    = -1546,    /* current time > expiry time */
  75.     kOCEProxyImmature                        = -1547,    /* current time < proxy start time */
  76.     kOCEProxyExpired                        = -1548,    /* current time > proxy expiry time */
  77.     kOCEDisallowedRecipient                    = -1549,    /* Recipient not specified in proxy */
  78.     kOCENoKeyFound                            = -1550,    /* found no key for entity in question */
  79.     kOCEPrincipalKeyNotFound                = -1551,    /* couldn't decode proxy because principal has no key */
  80.     kOCERecipientKeyNotFound                = -1552,    /* recipient has no key */
  81.     kOCEAgentKeyNotFound                    = -1553,    /* in TPFC, agent has no key */
  82.     kOCEKeyAlreadyRegistered                = -1554,    /* entity already has a key */
  83.     kOCEMalformedKey                        = -1555,    /* key is of an unknown encryption method, or key doesn't match password */
  84.     kOCEUndesirableKey                        = -1556,    /* password too short, key too simple, or trying to change cluster key to the same value */
  85.     kOCEWrongIdentityOrKey                    = -1557,    /* In CheckIdentity, name doesn't exist or key is wrong */
  86.     kOCEInitiatorKeyProblem                    = -1558,    /* either we couldn't find the initiator's key or we found it but couldn't successfully decrypt instructions or proxy */
  87.     kOCEBadEncryptionMethod                    = -1559,    /* the specified encryption method is not supported */
  88.     kOCELocalIdentityDoesNotExist            = -1560,    /* LocalIdentity has to be setup */
  89.     kOCELocalAuthenticationFail                = -1561,    /* LocalIdentity Login has to be done for this operation */
  90.     kOCELocalIdentitySetupExists            = -1562,    /* LocalIdentity setup exists, use change instead of setup */
  91.     kOCEDirectoryIdentitySetupExists        = -1563,      /* DirectoryIdentity setup exists, use change instead of setup */
  92.     kOCEDirectoryIdentitySetupDoesNotExist    = -1564,    /* DirectoryIdentity setup does not exist */
  93.     kOCENotLocalIdentity                    = -1565,    /* Use LocalIdentity calls instead! */
  94.     kOCENoMoreIDs                            = -1566,    /* identity table is full */
  95.     kOCEUnknownID                            = -1567,    /* identity passed is not valid */
  96.     kOCEOperationDenied                        = -1568,    /* LocalID operation denied */
  97.     kOCEAmbiguousMatches                    = -1569,    /* ambiguous matches found in resolving CIDs (more than 1 CID) */
  98.     kOCENoASDSPWorkSpace                    = -1570,    /* No ASDSP workspace passed for Open Secure Stream */
  99.     kOCEAuthenticationTrouble                = -1571        /* generic authentication problem */
  100. };
  101.  
  102. /* AOCE Catalog Errors (-1610 to -1680) */
  103.  
  104. enum {
  105.     kOCENotLocal                            = -1610,    /* the server does not serve the requested dNode */
  106.     kOCETooBusy                                = -1611,    /* server cannot complete call at this time */
  107.     kOCEDatabaseFull                        = -1612,    /* disk is full */
  108.     kOCETargetDirectoryInaccessible            = -1613,    /* Catalog server not responding */
  109.     kOCEBogusArgs                            = -1614,    /* Args not formatted correctly on the wire */
  110.     kOCENoSuchDNode                            = -1615,    /* the requested dNode does not exist */
  111.     kOCEDNodeUnavailable                    = -1616,    /* could not find any servers that serve the requested dNode */
  112.     kOCEBadRecordID                            = -1617,    /* invalid RecordID (usually name and/or type don't match cid) */
  113.     kOCENoSuchRecord                        = -1618,    /* the specified record does not exist */
  114.     kOCENoSuchAttributeValue                = -1619,    /* The attribute value that was passed in does not exist */
  115.     kOCENoSuchPseudonym                        = -1620,    /* the specified pseudonym does not exist */
  116.     kOCEAttributeValueTooBig                = -1621,    /* self-explanatory */
  117.     kOCETypeExists                            = -1622,    /* The type already exists in the record */
  118.     kOCEMoreData                            = -1623,    /* only a warning - buffer not big enough */
  119.     kOCERefNumBad                            = -1624,    /* RefNum is not valid */
  120.     kOCEStreamCreationErr                    = -1625,    /* problem creating stream */
  121.     kOCEOperationNotSupported                = -1626,    /* the specified catalog does not support this operation */
  122.     kOCEPABNotOpen                            = -1627,    /* specified Personal Catalog is not open to make the operation */
  123.     kOCEDSAMInstallErr                        = -1628,    /* specified CSAM could not be installed */
  124.     kOCEDirListFullErr                        = -1629,    /* catalog list is full, try removing an entry */
  125.     kOCEDirectoryNotFoundErr                = -1630,    /* catalog was not found in the list */
  126.     kOCEAbortNotSupportedForThisCall        = -1631,    /* this call cannot be aborted */
  127.     kOCEAborted                                = -1632,    /* this call was aborted */
  128.     kOCEOCESetupRequired                    = -1633,    /* LocalIdentity Setup is required */
  129.     kOCEDSAMRecordNotFound                    = -1634,    /* CSAM Record not found */
  130.     kOCEDSAMNotInstantiated                    = -1635,    /* CSAM is not instantiated */
  131.     kOCEDSAMRecordExists                    = -1636,    /* CSAM record already exists */
  132.     kOCELengthError                            = -1637,    /* supplied buffer was too small */
  133.     kOCEBadStartingRecord                    = -1638,    /* Lookup starting record is not within range */
  134.     kOCEBadStartingAttribute                = -1639,    /* Lookup starting attribute is not within range */
  135.     kOCEMoreAttrValue                        = -1640,    /* attribute value could not fit into buffer (even though it was the only value) */
  136.     kOCENoDupAllowed                        = -1641,
  137.     kOCENoSuchAttributeType                    = -1642,
  138.     kOCEMiscError                            = -1643,    /* some other error */
  139.     kOCENoSuchIcon                          = -1644,    /* no matching icon from GetDirectoryIcon */
  140.     kOCERLIsDontMatch                        = -1645,    /* RLIs do not match in lookup */
  141.     kOCEDirectoryCorrupt                    = -1646        /* Serious disk fill corruption problem */
  142. };
  143.  
  144. /* AOCE Standard Mail Errors (-1900 to -1949) */
  145.  
  146. enum {
  147.     kSMPNotEnoughMemoryForAllRecips         = -1900,
  148.     kSMPCopyInProgress                        = -1901,
  149.     kSMPMailerNotInitialized                = -1902,
  150.     kSMPShouldNotAddContent                    = -1903,
  151.     kSMPMailboxNotFound                        = -1904,
  152.     kSMPNoNextLetter                        = -1905,
  153.     kSMPHasOpenAttachments                    = -1906,
  154.     kSMPFinderNotRunning                    = -1907,
  155.     kSMPCommandDisabled                        = -1908,
  156.     kSMPNoMailerInWindow                    = -1909,
  157.     kSMPNoSuchAddress                        = -1910,
  158.     kSMPMailerAlreadyInWindow                = -1911,
  159.     kSMPMailerUneditable                    = -1912,
  160.     kSMPNoMatchingBegin                        = -1913,
  161.     kSMPCannotSendReceivedLetter             = -1914,
  162.     kSMPIllegalForDraftLetter                = -1915,
  163.     kSMPMailerCannotExpandOrContract         = -1916,
  164.     kSMPMailerAlreadyExpandedOrContracted     = -1917,
  165.     kSMPIllegalComponent                    = -1918,
  166.     kSMPMailerAlreadyNotTarget                = -1919,
  167.     kSMPComponentIsAlreadyTarget             = -1920,
  168.     kSMPRecordDoesNotContainAddress         = -1921,
  169.     kSMPAddressAlreadyInList                = -1922,
  170.     kSMPIllegalSendFormats                    = -1923,
  171.     kSMPInvalidAddressString                = -1924,
  172.     kSMPSubjectTooBig                        = -1925,
  173.     kSMPParamCountErr                        = -1926,    /*  enclosure count != 1, while sendEnclosure Only == true. */
  174.     kSMPTooManyPages                         = -1927,    /*  Exceeding the image page limit. */
  175.     kSMPTooManyEnclosures                    = -1928
  176. };
  177.  
  178. /* AOCE Standard Catalog Errors (-1950 to -1969) */
  179.  
  180. enum  {
  181.     kSDPNoSearchText            = -1950,
  182.     kSDPTooManyLoginAttempts    = -1951,
  183.     kSDPNoSelection                = -1952,
  184.     kSDPPersonalDirectoryRepairFailed = -1953
  185. };
  186.  
  187. /* AOCE Digital Signature Errors (-1970 to -1999) */
  188. enum {
  189.     kSIGOperationIncompatibleErr             = -1970,    /* context in use for different type of operation */
  190.     kSIGCertificateQueryDenied                 = -1971,    /* can't query certificates with this context */
  191.     kSIGVerifyFailedErr                     = -1972,    /* verification failed */
  192.     kSIGInvalidCredentialErr                 = -1973,    /* verified OK but credential out of date,  either pending or expired */
  193.     kSIGIndexErr                             = -1974,    /* the index given is outside the range of allowable values */
  194.     kSIGSignerErr                             = -1975,    /* problem with the signer or signature itself */
  195.     kSIGPasswordErr                         = -1976,    /* password is incorrect */
  196.     kSIGInternalsErr                         = -1977,    /* an internal error occurred like a bad digest, context or signature */
  197.     kSIGToolboxNotPresentErr                 = -1978,    /* for client services (ie servers) to report back - not retruned by the TB */
  198.     kSIGContextPrepareErr                     = -1979,    /* context either prepared with VerifyPrepare, SignPrepare or DigestPrepare already or has been corrupted */
  199.     kSIGNoDigestErr                         = -1980,    /* no digest in the signature */
  200.     kSIGConversionErr                         = -1981,    /* unabled to convert an attribute to Mac format */
  201.     kSIGSignerNotValidErr                     = -1982,    /* Signer has either expired or is pending and can not sign */
  202.     kSIGNoSignature                         = -1983        /* standard file signature not found */
  203. };
  204.  
  205. /* AOCE Templates Errors (-15000 to -15039) */
  206.  
  207. enum {
  208.     kDETInvalidTargetAspectName                = -15000,    /* Could not locate an aspect by name */
  209.     kDETInvalidTargetItemNumber                = -15001,    /* Item number is target invalid (out of range 1..<number of children>) */
  210.     kDETInvalidTargetFromNonAspect            = -15002,    /* Target selection relative to non-aspect object which requires an aspect */
  211.     kDETInvalidTargetDSSpec                    = -15003,    /* Target DSSpec could not be resolved */
  212.     kDETUnknownTargetSelector                = -15004,    /* Unknown selector type for target specification */
  213.     kDETInvalidTarget                        = -15005,    /* Target specification was invalid (for reasons other than those above) */
  214.     kDETTargetNotAnAspect                    = -15006,    /* Specified target object was not an aspect */
  215.     kDETInvalidCommandItemNumber            = -15007,    /* Command item number invalid (out of range 1..<number of items in selection>) */
  216.     kDETUnableToGetCommandItemSpec            = -15008,    /* Unable to retrieve item specification (internal error, possibly out of memory) */
  217.     kDETRequestedTypeUnavailable            = -15009,    /* Command item could not be represented in the form requested */
  218.     kDETInvalidDSSpec                        = -15010,    /* Could not resolve DSSpec (other than in target; see error above for targets) */
  219.     kDETUnableToAccessProperty                = -15011,    /* Property could not be found and/or created */
  220.     kDETInfoPageNotOpen                        = -15012,    /* Info-page not open; request requires an open info-page */
  221.     kDETNoSuchView                            = -15013,    /* No view found with specified property number */
  222.     kDETCouldNotAddMenuItem                    = -15014,    /* Could not add item to dynamic menu */
  223.     kDETCouldNotRemoveMenuItem                = -15015,    /* Could not remove item from dynamic menu */
  224.     kDETCouldNotFindMenuItem                = -15016,    /* Could not find menu item */
  225.     kDETCouldNotFindCustomView                = -15017,    /* Could not find custom view in info-page */
  226.     kDETInvalidReqFunction                    = -15018,    /* Invalid call-back request function */
  227.     kDETInvalidCallBack                        = -15019,    /* Invalid call-back (for reasons other than those above) */
  228.     kDETPropertyBusy                        = -15020    /* Edit is open on the property being set */
  229. };
  230.  
  231. /* AOCE Mail Errors (-15040 to -15089) */
  232.  
  233. enum {
  234.     kMailInvalidOrder            = -15040,    /* This object has already been written to and cannot be written again */
  235.                                             /* handle non-zero offsets for now */
  236.     kMailInvalidSeqNum            = -15041,    /* Invalid letter sequence o refers to an non–existent letter */
  237.     kMailAttrNotInHdr            = -15042,    /* attribute does not exist in this letter header */
  238.     kMailHdrAttrMissing            = -15043,    /* required attribute not written into letter header */
  239.     kMailBadEnclLengthErr        = -15044,    /* incorrect number of bytes has been written after memForm of PutEnclosure */
  240.     kMailInvalidRequest            = -15045,    /* cannot putAttr for report, putRcptReport for letter */
  241.     kMailInvalidPostItVersion    = -15046,    /* cannot create new postit with this version */
  242.     kMailNotASlotInQ            = -15047,    /* queueID does not refer to a slot's incoming queue */
  243.     kMailLtrNotOpen                = -15048,    /* letter is not open, probably not cached in inQ */
  244.     kMailMissingMailCat            = -15049,    /* trying to create message in inq, with no postIt */
  245.     kMailCannotWriteMailCat        = -15050,    /* cannot update a mail catentry */
  246.     kMailTooManyTagsPerLetter    = -15051,    /* cannot add more than kMaxTagsPerLetter tags */
  247.     kMailGwyDead                = -15052,    /* MSAM died */
  248.     kMailIgnoredErr                = -15053,    /* ePPC message was ignored */
  249.     kMailLengthErr                = -15054,    /* ePPC message did not complete */
  250.     kMailTooManyErr                = -15055,    /* Too many = request outstanding, */
  251.     kMailNoMSAMErr                = -15056,    /* no MSAMs found in mailbox! or for command */
  252.     kMailCancelled                = -15057,
  253.     kMailSlotSuspended            = -15058,
  254.     kMailMSAMSuspended            = -15059,
  255.     kMailBadSlotInfo            = -15060,
  256.     kMailMalformedContent        = -15061,    /* a mailed structure is malformed */
  257.     kMailNoSuchSlot                = -15062,    /* no such slot */
  258.     kMailBadLtrInfo                = -15063,    /* bad info there, can't change */
  259.     kMailSetFailed                = -15064,    /* could not set letter info */
  260.     kMailBadConfig                = -15065,    /* MSAM has bad config info */
  261.     kMailBadMSAM                = -15066,    /* bad MSAM: not usable = reason unspec, */
  262.     kMailCannotLkupServerSlots    = -15067,    /* cannot lookup adas for server mail slots */
  263.     kMailBadState                = -15068    /* the state specifiy is not in any of defined */
  264. };
  265.  
  266. /* AOCE Messaging Errors (-15090 to -15169) */
  267.  
  268. enum {
  269.     kIPMCantCreateIPMCatEntry    = -15090,
  270.     kIPMInvalidMsgType            = -15091,    /* bad msg hint */
  271.     kIPMInvalidProcHint            = -15092,    /* bad proc hint */
  272.     kIPMInvalidOffset            = -15093,    /* bad offset for read/write */
  273.     kIPMUpdateCatFailed            = -15094,
  274.     kIPMMsgTypeReserved            = -15095,
  275.     kIPMNotInABlock                = -15096,
  276.     kIPMNestedMsgOpened            = -15097,
  277.     kIPMA1HdrCorrupt            = -15098,
  278.     kIPMCorruptDataStructures    = -15099,
  279.     kIPMAbortOfNestedMsg        = -15100,
  280.     kIPMBlockIsNotNestedMsg        = -15101,
  281.     kIPMCacheFillError            = -15102,
  282.     kIPMInvalidSender            = -15103,
  283.     kIPMNoRecipientsYet            = -15104,
  284.     kIPMInvalidFilter            = -15105,
  285.     kIPMAttrNotInHdr            = -15106,
  286.     kIPMBlkNotFound                = -15107,
  287.     kIPMStreamErr                = -15108,    /* Error on stream (should this ever go out?) */
  288.     kIPMPortClosed                = -15109,    /* Port closed (should this ever go out?) */
  289.     kIPMBinBusy                    = -15110,
  290.     kIPMCorruptedBin            = -15111,
  291.     kIPMBadQName                = -15112,
  292.     kIPMEndOfBin                = -15113,
  293.     kIPMBinNeedsConversion        = -15114,
  294.     kIPMMgrInternalErr            = -15115,
  295.     kIPMEltBusy                    = -15116,
  296.     kIPMEltClosedNotDeleted        = -15117,
  297.     kIPMBadContext                = -15118,
  298.     kIPMContextIsClosing        = -15119,
  299.     kIPMeoQ                        = -15120,
  300.     kIPMQOutOfSpace                = -15121,
  301.     kIPMEltNotFound                = -15122,
  302.     kIPMBinOutOfSpace            = -15123,
  303.     kIPMeoCatEntry                = -15124,
  304.     kIPMeoElt                    = -15125,
  305.     kIPMQBusy                    = -15126,
  306.     kIPMNotSameBin                = -15127,
  307.     kIPMNoMoreServices            = -15128,
  308.     kIPMLookupAttrTooBig        = -15129,    /* attribute in lookup is too big */
  309.     kIPMUnknownUAM                = -15130,
  310.     kIPMUnsupportedLogin        = -15131,
  311.     kIPMLogInUnknown            = -15132,
  312.     kIPMNoMoreFilters            = -15133,
  313.     kIPMCouldNotReadInfoReply    = -15134,
  314.     kIPMInvalidUser                = -15135,
  315.     kIPMNoMoreSessions            = -15136,
  316.     kIPMNilUserProc                = -15137,
  317.     kIPMBadCatSize                = -15138,
  318.     kIPMIncompleteMsg            = -15139,
  319.     kIPMNoResponsibleTunnel        = -15140,
  320.     kIPMAccessDenied            = -15141,
  321.     kIPMReplyParamUnderrun        = -15142,    /* Too few reply parameters */
  322.     kIPMReplyParamOverrun        = -15143,    /* Too many reply parameters */
  323.     kIPMRequestParamUnderrun    = -15144,    /* Too few request parameters */
  324.     kIPMOutOfSync                = -15145,    /* Protocol sync. error */
  325.     kIPMNoAttrsFound            = -15146,    /* couldn't find any attrs in lookup */
  326.     kIPMWrongAttrTag            = -15147,    /* wrong attr tag in adas lookup */
  327.     kIPMNullCID                    = -15148,    /* null cid in enumerate */
  328.     kIPMBadMailSlotAttrVal        = -15149    /* invalid mailslot attr value */
  329. };
  330.  
  331. #endif
  332.  
  333.